package com.ma.fees;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.android.databinding.library.baseAdapters.BR;
import com.ma.R;

import java.util.ArrayList;
import java.util.List;

import base.BaseListActivity;

public class FeesRecordActivity extends BaseListActivity<FeesRecordActivity.FeesRecord> {

    @Override
    protected int getLayoutId() {
        return R.layout.fees_record_item;
    }

    @Override
    protected int getViewModelId() {
        return BR.feesRocrd;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        List<FeesRecord> list = new ArrayList<>();
        list.add(new FeesRecord());
        list.add(new FeesRecord());
        list.add(new FeesRecord());
        list.add(new FeesRecord());
        list.add(new FeesRecord());
        setData(list);
        adapter.setOnItemClickListener((view, position) -> {

            startActivity(FeesRecordInfoActivity.class);

        });


    }



    public class FeesRecord {
        private String address;
        private String id;
        private String customer;
        private String time;
        private boolean upload;

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCustomer() {
            return customer;
        }

        public void setCustomer(String customer) {
            this.customer = customer;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public boolean isUpload() {
            return upload;
        }

        public void setUpload(boolean upload) {
            this.upload = upload;
        }
    }
}
